import { legacy_createStore as createStore, combineReducers } from "redux";

import app from "./modules/app";
import pro from "./modules/pro";

//把两个 reducer 合并成一个 combineReducers
const reducer = combineReducers({
  app,
  pro,
});

const store = createStore(reducer);

export default store;
